package com.lh.api.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lh.common.entity.admin.Category;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.util.List;

/**
 * @author FH
 * @ClassName:
 * @Description: (类作用)
 * @date: 2020-06-30 14:54
 */
@Data
@ApiModel("分类")
public class SortVo {

    @ApiModelProperty(value = "")
    @Id
    private Long id;

    @ApiModelProperty(value = "排序")
    private Long sortReorder;

    @ApiModelProperty(value = "名称",allowEmptyValue=true,required = true)
    private String sortName;

    @ApiModelProperty(value = "图片",allowEmptyValue=true,required = true)
    private String sortPic;

    @ApiModelProperty(value = "父分类ID   一级分类为0;")
    private Long sortParentId;

    @ApiModelProperty(value = "是否关联商品;")
    private Long shop;

    @ApiModelProperty(value = "子元素列表")
    @TableField(exist=false)
    private List<SortVo> children;

}
